package com.csap.framework.oauth2.exception;

import com.csap.framework.oauth2.type.ExceptionType;
import lombok.Getter;

/**
 * 基本授权异常
 *
 * @Author ycf
 * @Date 2021/8/19 2:52 下午
 * @Version 1.0
 */
@Getter
public class Oauth2Exception extends RuntimeException implements HttpResponseEntity {

    public Oauth2Exception(String msg, Throwable t) {
        super(msg, t);
    }
    public Oauth2Exception(String msg) {
        super(msg);
    }
    @Override
    public ExceptionType exceptionType() {
        return ExceptionType.access_denied;
    }
}
